package com.cby.jetpack.sample.appstartup;

import android.content.Context;


import java.util.Collections;
import java.util.List;

import androidx.annotation.NonNull;
import androidx.startup.Initializer;

import com.cby.jetpack.sample.appstartup.init.SDKOne;

/**
 * Description:AppInitializer：用来应用app初始化
 *
 * @author 陈宝阳
 * @create 2020/6/29 16:10
 */
public class Sdk1Initializer implements Initializer<SDKOne> {

  @NonNull
  @Override
  public SDKOne create(@NonNull Context context) {
    SDKOne sdkOne = SDKOne.getInstance();
    sdkOne.init(context);
    return sdkOne;
  }

  @NonNull
  @Override
  public List<Class<? extends Initializer<?>>> dependencies() {
    return Collections.emptyList();
  }
}
